extends ../inc/layout
block main
	#main.container
		#main-inner
			#edit_error
				if edit_error
					.alert.alert-danger(role='alert')
						span #{edit_error}

			#writeBlog.row
				form.form-horizontal(role='form', action='/weixin/sendMsg', method='post')
					.form-group
						label(for='title') 标题
						input#title.form-control(type='text', name='title')
						input(type='hidden', name='msgtype', value='text')

					.form-group
						label(for='content') 正文
						textarea#content.form-control(name='content', rows=18)

					button.btn.btn-primary(type='submit') &nbsp;发&nbsp;&nbsp;布&nbsp;

block script
	script(src='/assets/bootstrap-3.2.0/js/bootstrap.min.js')
	// script.
	// 	window.onbeforeunload = onbeforeunload_handler;             
	// 	function onbeforeunload_handler(){     
	// 		var warning="确认放弃此文章确定要离开此页吗?";             
	// 		return warning;     
	// 	} 